package com.zzb.framework.role.entity;

import com.baomidou.mybatisplus.annotations.KeySequence;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.zzb.framework.common.BaseEntity;


/**
 * 菜单表 实体类
 */
@TableName(value = "t_sys_menu")
public class SysMenu extends BaseEntity<String> {
    @TableId(value = "id", type = IdType.UUID)
    private String id;
    @TableField(value = "menu_name")
    private String menuName; //菜单名
    @TableField(value = "menu_code")
    private String menuCode; //菜单代码
    @TableField(value = "menu_comment")
    private String menuComment; //菜单备注
    @TableField(value = "menu_icon")
    private String menuIcon; //菜单icon
    @TableField(value = "menu_url")
    private String menuUrl; //url地址
    @TableField(value = "menu_order")
    private Integer menuOrder; //菜单顺序，正序
    @TableField(value = "menu_parent_id")
    private String menuParentId; //上级菜单
    @TableField(value = "menu_level")
    private Integer menuLevel; //菜单层级，从1开始

    /*----------------------get set 方法----------------------*/
    public String getId() {return id;}
    public void setId(String id) {this.id = id;}
    public String getMenuName() {return menuName;}
    public void setMenuName(String menuName){this.menuName = menuName == null ? null : menuName.trim();}
    public String getMenuCode() {return menuCode;}
    public void setMenuCode(String menuCode){this.menuCode = menuCode == null ? null : menuCode.trim();}
    public String getMenuComment() {return menuComment;}
    public void setMenuComment(String menuComment){this.menuComment = menuComment == null ? null : menuComment.trim();}
    public String getMenuIcon() {return menuIcon;}
    public void setMenuIcon(String menuIcon){this.menuIcon = menuIcon == null ? null : menuIcon.trim();}
    public String getMenuUrl() {return menuUrl;}
    public void setMenuUrl(String menuUrl){this.menuUrl = menuUrl == null ? null : menuUrl.trim();}
    public Integer getMenuOrder() {return menuOrder;}
    public void setMenuOrder(Integer menuOrder){this.menuOrder = menuOrder;}
    public String getMenuParentId() {return menuParentId;}
    public void setMenuParentId(String menuParentId){this.menuParentId = menuParentId == null ? null : menuParentId.trim();}
    public Integer getMenuLevel() {return menuLevel;}
    public void setMenuLevel(Integer menuLevel){this.menuLevel = menuLevel;}
    /*----------------------toString 方法----------------------*/
    @Override
    public String toString() {
        return "SysMenu{" +
                "id='" + getId() + '\'' + ',' +
                "menuName='" + getMenuName() + '\'' + ',' +
                "menuCode='" + getMenuCode() + '\'' + ',' +
                "menuComment='" + getMenuComment() + '\'' + ',' +
                "menuIcon='" + getMenuIcon() + '\'' + ',' +
                "menuUrl='" + getMenuUrl() + '\'' + ',' +
                "menuOrder='" + getMenuOrder() + '\'' + ',' +
                "menuParentId='" + getMenuParentId() + '\'' + ',' +
                "menuLevel='" + getMenuLevel() + '\'' + ',' +
                "createTime='" + getCreateTime() + '\'' + ',' +
                "creator='" + getCreator() + '\'' + ',' +
                "updateTime='" + getUpdateTime() + '\'' + ',' +
                "updater='" + getUpdater() + '\'' + ',' +
                "activate='" + getActivate() + '\'' +
                '}';
    }
}
